﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace QModels;


[Table("MqttCache")]
public class MqttCache
{
	public string Id { get; set; }

	public string? CarNumber { get; set; }
	public MqttCacheEventType EventType { get; set; }

	public DateTime? CreateTime { get; set; }

	public DateTime? LastUpdateTime { get; set; }

	
	public byte IsClose { get; set; }

}


public enum MqttCacheEventType
{
	None = 0,
	/// <summary>
	/// 更新小车信息
	/// </summary>
	UpdateCarStatus = 1,
	/// <summary>
	/// 更新小车电量上下限
	/// </summary>
	UpdateCarElectricLimit = 2,
	/// <summary>
	/// 更新充电
	/// </summary>
	UpdateChongDianTask = 3,

	/// <summary>
	/// 更新鸽笼信息
	/// </summary>
	UpdatePigeonCage=4,

	/// <summary>
	/// 更新喂料时间
	/// </summary>
	UpdateDosingSchedule = 5,

}




